package com.example.string_test;

import cn.hutool.core.util.StrUtil;
import cn.hutool.crypto.SmUtil;
import cn.hutool.crypto.asymmetric.SM2;
import org.junit.Test;

import java.nio.charset.MalformedInputException;
import java.time.LocalDate;

/**
 * csp
 *
 * @author csp 2022-05-28
 */
public class SubStringTest {
    String str = "aswdasd123adasdvswda";
    boolean test;
    @Test
    public void sub() {
        System.out.println(StrUtil.sub(str, 0, 1000));
    }
    @Test
    public void add() {
//        System.out.println(LocalDate.now()+"");
        String a = "1";
        String b = null;
        System.out.println(b=="");
    }
    @Test
    public void range() {
        SM2 sm2 = SmUtil.sm2();
        System.out.println(sm2.getPrivateKeyBase64());
        System.out.println(sm2.getPublicKeyBase64());

    }
}
